Santa HAT [ For Christmas ]
Posted: Sat Dec 03, 2011 9:45 pm
[ Descriere ] O caciula de Mos Craciun atasabila.
[ Instalare / Adaugare ]
1 . La OnPlayerCommandText adaugati :
2 . Daca vreti ca playerul sa aiba caciula fara sa tasteze /santaon,mergeti la OnPlayerSpawn si adaugati
Tutorial by Dell-
[ Instalare / Adaugare ]
1 . La OnPlayerCommandText adaugati :
Code: Select all
if(!strcmp(cmdtext, "/santaon", true)) // www.ZONEK.RO [ SAMP.Zonek.RO ]
{
SetPlayerAttachedObject(playerid, 0, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
return SendClientMessage(playerid, COLOR_WHITE, "*** "#COL_RED"Santa hat "#COL_WHITE"a fost adaugata cu succes.");
}
if(strcmp(cmd,"/santaoff", true) == 0) // www.ZONEK.RO [ SAMP.Zonek.RO ]
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 3))
{
RemovePlayerAttachedObject(playerid, 3);
SendClientMessage(playerid, COLOR_WHITE, "*** "#COL_RED"Santa hat "#COL_WHITE"a fost inlaturata cu succes.");
}
}
return 1;
}
Code: Select all
SetPlayerAttachedObject(playerid, 0, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4); // www.ZONEK.RO [ SAMP.Zonek.RO ]