02.09.2011, 21:03
Hi , i want to creat a Gate with Command only for A Team the name of it "UC" so , this is the command:
so i have defined the Teams and all Working , but whene i go IG and i choose UC skin and use /uco it says:
"You Must be U.C to Use this Gate !"
BTW i have all Defined
Need Help...
pawn Код:
CMD:uco(playerid, params[])
{
if(gTeam[playerid] == TEAM_UC)
{
MoveObject(ucgate, -9.41607475,1206.59936523,23.55257988, 2.0);
SendClientMessage(playerid, 0xFFFFFF, "You Take Your Remote Console And Open The Gate...");
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "You Must be U.C to Use this Gate !");
}
return 1;
}
"You Must be U.C to Use this Gate !"
BTW i have all Defined
pawn Код:
if(classid == 4)
{
gTeam[playerid] = TEAM_UC;
}
if(classid == 5)
{
gTeam[playerid] = TEAM_UC;
}