Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay( cid, words, param )
- if( param == "" )then
- doPlayerSendTextMessage( cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to type the parameter." )
- return false
- end
- local Player = getPlayerByName(param)
- if Player == LUA_NULL then
- doPlayerSendTextMessage( cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player does not exist" )
- return false
- end
- if isPlayer(Player) == true and isPromoted(Player) == false then
- local vocId = getPlayerVocation(Player)
- doPlayerSetVocation(Player,vocId + 4)
- else
- doPlayerSendTextMessage( cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player is already promoted" )
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement