Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:kick(playerid,params[])
- {
- new pName[MAX_PLAYER_NAME];
- new message[200];
- new raison[60];
- GetPlayerName(playerid, pName,sizeof(pName));
- if(!sscanf(params,"us",pName,raison))
- {
- if(IsPlayerConnected(pName))//Argument type mismatch(argument 1)
- {
- if(pInfo[playerid][pAdmin] == 1 || pInfo[playerid][pModo] == 1)
- {
- format(message, sizeof(pName),"[BAN]%s a été banni pour : %s", pName,raison);
- SendClientMessageToAll(orange, message);
- Kick(pName);//Argument type mismatch(argument 1)
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement