31.08.2009, 12:35
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/mehlop", true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
return SetVehiclePos(vehicleid,1708.5780,1606.8759,10.0156),
GameTextForPlayer(playerid, "~r~Welcome to the wolvez base wolf!", 5000, 5);
}
SetPlayerPos(playerid,1708.5780,1606.8759,10.0156);
GameTextForPlayer(playerid, "~r~Welcome to the wolvez base wolf!", 5000, 5);
return 1;
}
}