18.02.2012, 16:34
pawn Код:
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '[LSPD]')
{
GangInfo[playerid][LSPD] = 1;
GangInfo[playerid][Cadet] = 0;
GangInfo[playerid][CRASH] = 0;
if(IsPlayerNPC(playerid)) return 1;
SetPlayerPos(playerid, 1539.4164,-1675.2948,13.5469);
SetPlayerFacingAngle(playerid,100.0);
SetPlayerCameraPos(playerid, 1535.5811,-1675.2346,13.3828);
SetPlayerCameraLookAt(playerid, 1539.4164,-1675.2948,13.5469);
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1, 1);
GameTextForPlayer(playerid, "~b~Los Santos Police Department", 2000, 6);
SetPlayerColor(playerid,0x0000BBAA);
}
}
}