19.08.2012, 16:45
Hello! I have a problem with team's car. It works just for one car, not for all of them.
My commands are a little bit strange. For example, Grove:
if(strcmp(cmd, "/joingrove", true) == 0) {
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerPos(playerid, 2499.0161,-1683.6827,13.3933);
SendClientMessage(playerid, COLOR_GREEN, "You are now in GROVE.");
SetPlayerSkin(playerid,106);
SetPlayerColor(playerid,COLOR_GREEN);
GivePlayerWeapon(playerid,1,1);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,18,10);
GivePlayerWeapon(playerid,24,350);
GivePlayerWeapon(playerid,29,1000);
GivePlayerWeapon(playerid,47,1);
gTeam[playerid] = team_grove;
// now you can easily know if he is in grove or not
return 1;
My commands are a little bit strange. For example, Grove:
if(strcmp(cmd, "/joingrove", true) == 0) {
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerPos(playerid, 2499.0161,-1683.6827,13.3933);
SendClientMessage(playerid, COLOR_GREEN, "You are now in GROVE.");
SetPlayerSkin(playerid,106);
SetPlayerColor(playerid,COLOR_GREEN);
GivePlayerWeapon(playerid,1,1);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,18,10);
GivePlayerWeapon(playerid,24,350);
GivePlayerWeapon(playerid,29,1000);
GivePlayerWeapon(playerid,47,1);
gTeam[playerid] = team_grove;
// now you can easily know if he is in grove or not
return 1;