Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:ffa(playerid, params[])
- {
- new tmp[ 10 ];
- if(sscanf(params, "s", tmp)) return SCP(playerid, "lvpd");
- if(!strcmp(tmp, "d", true, 5))
- {
- if(pInfo[playerid][pLevel] >= 2 || IsPlayerAdmin(playerid))
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- TogglePlayerControllable(i,0);
- }
- }
- SendClientMessageToAll(0xff0000AA, "After five seconds you will be spawned in the LVPD area!");
- SendClientMessage(playerid, 0xff0000AA, "[SERVER]Spawn-positions set to LVPD area.");
- SetTimer("CountDown", 5000, false);
- normal = 1;
- minigame = 0;
- return 1;
- }
- else return SendClientError(playerid, CANT_USE_CMD);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement