Slovensko Milan Suchy: VOJTO
Nepál salahudin_AYOBI: bro you what dowload samp?
Česká republika morlox: Nějaký kontakt na tebe?
Česká republika morlox: Nějaký kontakt na tebe?
Česká republika Walda1990: zdarec nejdemi spustit server …

SA-MP Scripting Tutorial 4: Basic Commands

uživatelský avatar

03.03.2012, 03:26:50
25981 zobrazení,
Here are the commands as they should look like after you follow every instruction showing up on the tutorial. You will need the COLOR defines found here. If you don't know how to define them , watch the whole tutorial. http://www.youtube.com/watch?v=4Qe6NbLm5bc

---------------------------------------------------------------------------------
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Welcome to my Server's HELP command!");
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Hope you enjoy the tutorial!");
return 1;
}

---------------------------------------------------------------------------------
Music: Sunshine(version 2) byKevin MacLeod ( www.Incompetech.com)
Licensed under Attribution 3.0 Unported (CC BY 3.0)
Přidat komentář

Komentáře (0)