25.11.2010, 19:53
Hey, i am scripting a gm, and when i did this command, i get alot of errors.
Thanks, alex
pawn Код:
if(strcmp(cmd, "/enterpg" true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 142.1577,1875.4176,17.8434))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, COLOR_GREEN, " Welcome to Prison Guards HQ! ");
}
else if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
SetPlayerPos(playerid, 142.1577,1875.4176,17.8434);
SendClientMessage(playerid, COLOR_RED, "ERROR: You are not authorized to enter this building");
return 1;
}
}