15.07.2010, 17:05
Quote:
GetPVarInt only uses 2 params, so:
pawn Код:
|
pawn Код:
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,-1233.5388,-2331.3735,18.2380))
{
new string[128];
SetPlayerPos(playerid,2263.7610,-2323.9080,323.6542);
format(string,sizeof(string),"%s has entered the safezone!",playerid);
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
else if(GetPVarInt(playerid, "classid",0) == 1)
{
SendClientMessage(playerid,COLOR_RED, "-Access Denied-");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE, "You are not at the safezone! Be careful!");
return 1;
}
}
Thanks in advance!
EDIT: Nevermind, I figured out that that on
pawn Код:
SendClientMessageToAll(COLOR_WHITE,string);