22.10.2017, 05:17
Код:
dcmd_grade(playerid, params[]) { #pragma unused params if(Player[playerid][pGrade] >= 1) return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк jб usou /grade!"); if(Player[playerid][pBallas] >= 1) { new string [42]; new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); Player[playerid][pGrade] = CreateDynamicObject(980, X, Y, Z, 0.0, 0.0, A); SetPlayerPos(playerid, X, Y, Z+4); format(string, sizeof(string), "%s criou uma Grade.", getPName(playerid)); MensagemLocal(playerid, COR_ROXO, string, 50); } return 1; }
https://imgur.com/k9Iy4Nf