20.07.2012, 16:06
pawn Код:
CMD:gate(playerid,params)
{
if(pInfo[playerid][fMember] > 2 && pInfo[playerid][fLeader] > 2)
{
return SendClientMessage(playerid,COLOR_RED,"You are not a NCR member");
}
else
{
new pName[MAX_PLAYER_NAME],str[128];
MoveObject(NCRGate1,96.44, 1924.51, 39,0.00, 0.00, -88.14);
MoveObject(NCRGate2, 96.44, 1924.51,7.13,0.00, 0.00, -88.14);
GetPlayerName(playerid,pName,sizeof(pName));
format(str,sizeof(str),"%s has opened the NCR main door",pName);
ProxDetector(50.0, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
Why is that happening