28.05.2018, 15:26
PHP код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
new Float:oldX, Float:oldY, Float:oldZ, Float:oldRotX, Float:oldRotY, Float:oldRotZ;
GetObjectPos(GrafiteJFS[playerid], oldX, oldY, oldZ);
GetObjectRot(GrafiteJFS[playerid], oldRotX, oldRotY, oldRotZ);
if(!playerobject)
{
if(!IsValidObject(GrafiteJFS[playerid])) return 1;
MoveObject(GrafiteJFS[playerid], fX, fY, fZ, 10.0, fRotX, fRotY, fRotZ);
}
if(response == EDIT_RESPONSE_FINAL)
{
new string[64];
format(string, sizeof(string), "Criada Por: %s", getPName(playerid));
Player[playerid][LabelPic] = Create3DTextLabel(string, COR_AMARELO, fX, fY, fZ-0.2, 10.0, 0);
SendClientMessage(playerid,COR_AZULCLARO,"<!> {ffffff}Use o Spray por 5 segundos para finalizar.");
SendClientMessage(playerid,COR_AZULCLARO,"<!> {ffffff}Ao final, nгo utilize esse spray para nada!");
GivePlayerWeapon(playerid, 41, 5000);
}
return 1;
}