look..
PHP код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon(playerid, 4, 1528.779, -1678.113, 5.890625, 30, COLOR_YELLOW); // Lspd
SetPlayerMapIcon(playerid, 5, 1219.4878,-1812.7175,16.5938, 55, COLOR_YELLOW); // DMV
SetPlayerMapIcon(playerid, 4, 1462.5778,-1013.2362,26.8438, 52, COLOR_YELLOW); // Bank
SetPlayerMapIcon(playerid, 6, 1178.03, -1323.41, 14.10, 22, COLOR_YELLOW); // Hospital
SetPlayerMapIcon(playerid, 6, 1412.9586,-1699.2380,13.5395, 56, COLOR_YELLOW); //jp
//so the timer can be executed again
PlayAudioStreamForPlayer( playerid, "http://77.36.67.131:8000/" );
firstSpawn[ playerid ] = true;
new zone[MAX_ZONE_NAME];
new name[MAX_PLAYER_NAME],string[47];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s a intrat in Server! ", name);
SendClientMessage(playerid, COLOR_WHITE, string);
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
PlayerInfo[playerid][SpawnDance] = true;
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //preventing a bug for the animation not being applied the first time OnPlayerRequestClass is called
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return true;
}