04.04.2011, 16:22
Like this? Then add a return 1; after the sendclientmessage
pawn Код:
if (strcmp(cmdtext, "/telealla", true)==0)
{
GetPlayerName(playerid,pName,64);
if(!strcmp(pName,"Steven_Hayen",true)) // Change Name_Name to your name.
{
[COLOR="Red"]SendClientMessage(playerid, COLOR_HERE, "Your name is not Steven_Hayden. You can not teleport"[/COLOR]
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetVehiclePos(GetPlayerVehicleID(playerid), 260.1984,-1230.9200,58.5478);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.945861);
return 1;
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 260.1984,-1230.9200,58.5478);
SetPlayerFacingAngle(playerid, 180.945861);
return 1;
}
}
}