21.02.2010, 10:36
I got 2 command's, but i dont know how to put them good correct with { and }'s
Thanx if u will help!
My Code
The other command
Thanx if u will help!
My Code
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/home")) { if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 673.6246, 1732.0582, 6.9922); } else { SetPlayerPos(playerid, 673.6246, 1732.0582, 6.9922); } return 1; } return 0; }
Код:
if(!strcmp(cmdtext, "/drift")) { if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), -329.7016, 1536.6998, 76.6117); } else { SetPlayerPos(playerid, -329.7016, 1536.6998, 76.6117); } return 1; }