04.06.2014, 23:07
Help with /get command
How to build a team with the approval of?
Sorry for my handwriting
I am not an Englishman
Код:
if(!strcmp(cmdtext, "/get", true,4))
{
if(cmdtext[4]==0){SendClientMessage(playerid, 0xD9E916FF, "/get [player name (id)]"); return 1;}
new vardas[MAX_PLAYER_NAME];
strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME);
new id = GetPlayeridMid(vardas);
if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, 0xD9E916FF, "The player does not.."); return 1;}
if (GetPlayerVirtualWorld(playerid)>0){SendClientMessage(playerid, 0xD9E916FF, "You are at home, call the player in the house ..."); return 1;}
if (playerDB[id][ikalintas]) {SendClientMessage(playerid, 0xD9E916FF, "Player in jail"); return 1;}
if(IsPlayerNPC(id)){ SendClientMessage(playerid, RED, "* Botu Atkelti Negalima!"); return 1;}
SetPlayerInterior(id,GetPlayerInterior(playerid));
new Float:tempcoo[3];
GetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
SetPlayerPos(id,tempcoo[0],tempcoo[1],tempcoo[2]);
SetCameraBehindPlayer(id);
return 1;
}
Sorry for my handwriting
I am not an Englishman


