![]() ![]() GetPlayerName(playerid, name1, sizeof(name1)) // Getting the name of the playerid If(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_WHITE,"This player is not connected.") // Obvious why. If (sscanf(params, "us", id,reason)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /kick ") //If you didn't fill in the command correctly. We also want to show a message when the target isn't connected You have to tell everything to your script to make it work. kick playerid, it will return a message. We want to see if you typed in the command on a good manner. The ! will make it that it looks if you are NOT an admin. Take a look at the ! infront of IsPlayerAdmin. If the player is NOT an admin, he will get the message: You're not allowed to use this command. Let's translate the line in an English sentence This line checks if a player is an admin or not. ![]() If(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE,"You're not allowed to use this command.") New reason // The 80 cells are there because that is the maximum ammount of characters you can fill in. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |