- 0
[GF/RP] Problema /factionspawn
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
ToX1c
Salut am si eu o mare problema la comanda /factionspawn cand sunt pe sv si dau /factionspawn LS si dau respawn totul merge bine , cand dau restart la server nu ma da in LS ma da in SF..Ce pot sa fac cand dau /factionspawn LS si sting serverul sa ma dea tot in LS.
2.Cum fac la /factionspawn sa pun la mai multe factiunii. de ex sa poata sa dea si medicii /factionspawn LS/SF.Multumesc
if (strcmp("/factionspawn", cmdtext, true,11) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /factionspawn [SF/LS]"); return 1; } if(strcmp(x_nr,"SF",true) == 0) { SchoolSpawn[playerid] = 0; SendClientMessage(playerid, COLOR_WHITE, "Spawn-ul tau a fost setat in SF"); return 1; } else if(strcmp(x_nr,"LS",true) == 0) { SchoolSpawn[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, "Spawn-ul tau a fost setat in LS"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din School Instructor !"); } } return 1; }11 answers to this question
Recommended Posts