02.04.2014, 14:27
What is wrong here?
pawn Код:
if(strcmp(cmd, "/up", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid,-2212.5674,643.8956,49.4456))
{
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerPos(playerid,2240.1135,648.5764,74.0790);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
}
}
}
}
if(strcmp(cmd, "/down", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid,-2236.0012,647.6078,74.0790))
{
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerPos(playerid,-2212.5674,643.8956,49.4456);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
}
}
}
}