Need little help with SendClientMessage.
#2

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;
    }
    }
    }
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: 2 Guest(s)