31.10.2014, 00:44
if (strcmp(cmd, "/spawnfaction", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_GREEN, "____________________ Respawn Factions ____________________");
SendClientMessage(playerid, COLOR_WHITE, "PD - Police Department");
SendClientMessage(playerid, COLOR_WHITE, "FBI - Federal Bureau of investigation");
SendClientMessage(playerid, COLOR_WHITE, "...");
SendClientMessage(playerid, COLOR_GREEN, "____________________ Respawn Factions ____________________");
return 1;
}
for(new i; i<MAX_PLAYERS; i++)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(strcmp(x_nr,"PD",true) == 0)
{
SpawnPlayer(i);
SendClientMessage(i,-1,"An Admin Has Respawned Your Faction.");
}
} else
{
return 1;
}
}
}
return 1;
}
guys this command work, but receive only respawn members with rcon loaded how can i spawn all members without rcon load ?, and how can I do to activate the command without rcon login?
{
if(IsPlayerAdmin(playerid))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_GREEN, "____________________ Respawn Factions ____________________");
SendClientMessage(playerid, COLOR_WHITE, "PD - Police Department");
SendClientMessage(playerid, COLOR_WHITE, "FBI - Federal Bureau of investigation");
SendClientMessage(playerid, COLOR_WHITE, "...");
SendClientMessage(playerid, COLOR_GREEN, "____________________ Respawn Factions ____________________");
return 1;
}
for(new i; i<MAX_PLAYERS; i++)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(strcmp(x_nr,"PD",true) == 0)
{
SpawnPlayer(i);
SendClientMessage(i,-1,"An Admin Has Respawned Your Faction.");
}
} else
{
return 1;
}
}
}
return 1;
}
guys this command work, but receive only respawn members with rcon loaded how can i spawn all members without rcon load ?, and how can I do to activate the command without rcon login?