public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/help", true, 10) == 0) { SendClientMessage(playerid, 0xAA33AA33, "This is a gang war server. There are 5 groups[Cops, SBA, Grove, Ballas, Vagos, Aztecs]. For commands type /cmds."); return 1; } if(strcmp(cmdtext, "/sgt", true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); CreateVehicle(522, X, Y, Z, 0, 0, 1, 0); return 1; } if(strcmp(cmdtext, "/kill", true, 10) == 0) { SetPlayerHealth(playerid, 0); return 1; } if(strcmp(cmdtext, "/admin", true) == 0) { ShowMenuForPlayer(Admin, playerid); return 1; } if(strcmp(cmdtext, "/cmds", true) == 0) { SendClientMessage(playerid, 0x33AA33AA, "/kill || /admin || /rankinfo || /myrank"); return 1; } return 1; }
Originally Posted by ineoncore
try to delete all the FS from server.cfg if it dose work turn on one by one and if you see witch one made the erreo dont use it
|
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/help", true, 10) == 0) { SendClientMessage(playerid, 0xAA33AA33, "This is a gang war server. There are 5 groups[Cops, SBA, Grove, Ballas, Vagos, Aztecs]. For commands type /cmds."); return 1; } if(strcmp(cmdtext, "/sgt", true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); CreateVehicle(522, X, Y, Z, 0, 0, 1, 0); return 1; } if(strcmp(cmdtext, "/kill", true, 10) == 0) { SetPlayerHealth(playerid, 0); return 1; } if(strcmp(cmdtext, "/admin", true) == 0) { ShowMenuForPlayer(Admin, playerid); return 1; } if(strcmp(cmdtext, "/cmds", true) == 0) { SendClientMessage(playerid, 0x33AA33AA, "/kill || /admin || /rankinfo || /myrank"); return 1; } return 0; }