09.05.2012, 02:48
PHP код:
if(strcmp(cmdtext,"/drift",true)==0)
{
new pname[MAX_PLAYER_NAME];
new string [125];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
format(string, sizeof(string), "{FFFF00}[BTDM]{00FFFF} %s Foi Para {FFFFFF}Drift /drift!", pname);
SendClientMessageToAll(0x00FFFFFF, string);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,-306.6964,1532.6012,75.3594);
}
SetPlayerPos(playerid,-306.6964,1532.6012,75.3594);
SetPlayerInterior(playerid,0);
return 1;
}