14.03.2010, 17:51
Hello, this is how my commant looks like:
And the problem is that this message comes up when I try to enter:
Thanks
pawn Код:
if(strcmp(cmd, "/penter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] == 6)
{
if(PlayerToPoint(5.0,playerid, 2695.6880, -1704.6300, 11.8438))
{
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 3043.7874,-1964.9265,10.9638);
SetPlayerPos(playerid, 3043.7874,-1964.9265,10.9638);
//SendClientMessage(playerid, 0xFFFFFFFF, "Acb");
// SetPlayerPos(playerid, 264.5743,77.5118,1001.0391);
}
else
{
SetPlayerPos(playerid, 268.0903,77.6489,1001.0391);
}
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");
}
}
}
return 1;
}
pawn Код:
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");