Need little help with SendClientMessage.
#3

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;
}
Reply


Messages In This Thread
Need little help with SendClientMessage. - by pliptm - 04.04.2011, 16:17
Re: Need little help with SendClientMessage. - by Placebo - 04.04.2011, 16:22
Re: Need little help with SendClientMessage. - by Mike Garber - 04.04.2011, 16:23
Re: Need little help with SendClientMessage. - by pliptm - 04.04.2011, 16:24
Re: Need little help with SendClientMessage. - by pliptm - 04.04.2011, 16:29
Re: Need little help with SendClientMessage. - by Marricio - 04.04.2011, 16:31
Re: Need little help with SendClientMessage. - by pliptm - 04.04.2011, 16:31
Re: Need little help with SendClientMessage. - by Mike Garber - 04.04.2011, 16:40
Re: Need little help with SendClientMessage. - by pliptm - 04.04.2011, 16:42
Re: Need little help with SendClientMessage. - by Mike Garber - 04.04.2011, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)