rendered paste body if(strcmp(cmd, "/course", true) == 0) {
new VehicleID;
new Float:x,Float:y,Float:z;
new pname[24];
GetPlayerName(playerid,pname,24);
new pcol = GetPlayerColor(playerid);
format(string, sizeof(string), "* %s(%d) has joined the /course!",pname,playerid);
SendClientMessageToAll(pcol,string);
printf("%s",string);
GetPlayerPos(playerid,x,y,z);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1937.0485,537.3350,6.8395);
SetPlayerFacingAngle(playerid,177.7534);
SetVehiclePos(VehicleID, 1937.0485,537.3350,6.8395);
GameTextForPlayer(playerid,"~y~Pass this course!", 3000, 5);
SetPlayerCheckpoint(playerid, 1868.9509,544.0259,6.8395, 3.0);
return 1;
}
//if ??????????????
{
new Float:x,Float:y,Float:z;
SendClientMessage(playerid, COLOR_YELLOW, "Congratulations! You have pass the course!");
SendClientMessage(playerid, COLOR_YELLOW, "You received");
SendClientMessage(playerid, COLOR_RED, "1. Body armor ");
SendClientMessage(playerid, COLOR_RED, "2. Full Health ");
SendClientMessage(playerid, COLOR_RED, "3. 200,000 dollars ");
SendClientMessage(playerid, COLOR_YELLOW, "Come again next time! ");
GivePlayerMoney(playerid, 200000);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0 );
SetPlayerPos(playerid,x,y,z);
return 1;
}