04.04.2011, 16:23
Code above wont work.
pawn Код:
if (strcmp(cmdtext, "/telealla", true)==0)
{
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
if(!strcmp(pName,"Steven_Hayen",true)) // Change Name_Name to your name.
{
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);
}
else
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 260.1984,-1230.9200,58.5478);
SetPlayerFacingAngle(playerid, 180.945861);
}
}
else return SendClientMessage(playerid,COLOR_RED,"You may not teleport!");
return 1;
}